import request from '@/utils/request';

export async function getInspectStandardCategoryByPage(params: any) {
  return request('/api/device/getInspectStandardCategoryByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addInspectStandardCategory(params: any) {
  return request('/api/device/addInspectStandardCategory', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectStandardCategory(params: any) {
  return request('/api/device/updateInspectStandardCategory', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectStandardCategory(params: any) {
  return request('/api/device/delInspectStandardCategory', {
    method: 'POST',
    data: params,
  });
}

export async function exportInspectStandardCategory(params: any) {
  return request('/api/device/exportInspectStandardCategory', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default {
  getInspectStandardCategoryByPage,
  addInspectStandardCategory,
  updateInspectStandardCategory,
  delInspectStandardCategory,
  exportInspectStandardCategory,
};
